package abg.core.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Data
@Component
@Configuration
@ConfigurationProperties(prefix = "abg.security")
public class AbgProSecurity {

    //只判断登录状态，不判断用户是否具备资源
    private List<String> resOnlyLogin = new ArrayList<>();

    //忽略身份拦截+资源拦截
    private List<String> resIgnore = new ArrayList<>();

    //用户登录加盐
    private String loginSalt = "uihs54iiu1568suf55suuf55ihuf55di4iiu1568ss4df6g1d";

    //Token生成时使用的加密串
    private String tokenSecret;
}